package visitor;

/**
 * @Author: Doream
 * @Date: 2022/1/30 14:15
 */
public class Client {
    public static void main(String[] args) {
        Home home = new Home();
        Cat cat = new Cat();
        Dog dog = new Dog();
        home.add(cat);
        home.add(dog);
        home.action(new Owner());
    }
}
